package com.zkthink.ceres.promotion.service;

import com.zkthink.ceres.promotion.dto.PromotionDetailDTO;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 *    优惠方案服务
 * </p>
 *
 * @author vivi.huang
 * @since 2020/6/22
 */
public interface PromotionPlanService {

    /**
     * 计算订单优惠后金额
     * @param orderTotalAmount 订单金额  单位分
     * @param promotionId 关联活动id
     * @param promotionDetailDTOList 优惠券明细
     * @return  单位分
     */
    Long calculatePromotionPlanAmount(Long orderTotalAmount, Long promotionId, Optional<List<PromotionDetailDTO>> promotionDetailDTOList);
}